package com.ztgf.order.models.service;

import com.baomidou.mybatisplus.service.IService;
import com.ztgf.common.constant.Result;
import com.ztgf.order.models.bo.LogisticsEditBO;
import com.ztgf.order.models.bo.OrderShipSaveBO;
import com.ztgf.order.models.dto.OrderShipDTO;

import java.util.List;

/**
 * 订单发货表服务
 *
 * @author chenyu.wang
 * @Date 2020-06-29 11:26:15
 */
public interface IOrderShipService extends IService<OrderShipDTO> {

    /**
     * description: 订单发货接口
     * param: [bo]
     * author: chenyu.wang
     * date: 2020-06-29
     * return: boolean
     */
    Result<List<String>> addOrderShip(OrderShipSaveBO bo);

    /**
     * description: 根据订单id查询
     * param: [orderId]
     * author: chenyu.wang
     * date: 2020-06-29
     * return: com.ztgf.order.models.dto.OrderShipDTO
     */
    OrderShipDTO getByOrderId(Long orderId);

    /**
     * description: 根据订单id查询发货信息
     * param: [orderId]
     * author: chenyu.wang
     * date: 2020-07-27id
     * return: java.util.List<com.ztgf.order.models.dto.OrderShipDTO>
     */
    List<OrderShipDTO> getListByOrderId(Long orderId);

    Result updateLogistics(LogisticsEditBO saveBO);
}
